<%@include file="cabecera.jsp"%>

<form action="LoginServlet" method="post">
<table style="height: 77px; " align="center">
<tr>
	  <td>Tipo de Acceso</td>
      <td><select name="tipo" size="1">
      <option selected="selected">Postulante</option>
      <option>Empresa</option>
      </select></td>
</tr>
 <tr>
	<td>Correo</td>
	<td><input type="text" name="correo"/></td>
 </tr>
 <tr>
	<td>Clave</td>
	<td><input type="password" name="clave"/></td>
 </tr>
 <tr>
 	<td colspan="2" align="center"><input type="submit" value="Ingresar" onclick="return isValidEmail();"/></td> 
 </tr>
</table>
</form>

<script type=text/javascript>
function isValidEmail(){
	var email = document.getElementById("correo").value;
	var reEmail = /^(?:\w+\.?)*\w+@(?:\w+\.)+\w+$/;
	if (reEmail.test(email)){
		return true;
	} else {
		alert("Correo electronico invalido.");
		document.getElementById("correo").focus();
		return false;
	}
}
</script>

<%@include file="pie.jsp"%>